QGrid
Area commands
|
|
| QG_SetAreaStyle(areaRef; frameStyle; focusRing):errorCode | |||
|
|
areaRef | Longint | QGrid area reference |
|
|
frameStyle | Longint | Frame style |
|
|
focusRing | Longint | Focus ring style |
|
|
error | Longint | Error result |
Configures the visual appearance of a QGrid area.
Parameter areaRef is the QGrid area reference. If areaRef is not a valid QGrid area reference, qg_paramErr error is returned.
Parameter frameStyle specifies the area frame style. Use one of the following constants:
| qg_PlainFrame | 0 | Puts a black one-pixel frame around the area |
| qg_SunkenFrame | 1 | Puts a sunken-style frame around the area |
| qg_NoneFrame | 3 | No frame |
Parameter focusRing specifies the style of the area focus ring. Use one of the following constants:
| qg_NoFocus | 0 | No focus indication |
| qg_SmokedFocus | 1 | Smoke-style focus indication |
Notes
| Area frame style: | qg_PlainFrame |
| Focus ring type: | qg_NoFocus |
Example
` Use a smoke-style focus ring C_LONGINT($err;$frame;$focus) $frame:=-1 ` leave the frame style unchanged$focus:=qg_SmokedFocus $err:=QG_SetAreaStyle(xGrid;$frame;$focus)If ($err # qg_noErr) ` Handle the errorEnd if |
Related commands
| QG_GetAreaStyle | Returns the visual appearance configuration of a QGrid plug-in area |